cmake_minimum_required(VERSION 3.18.2)
project(include_directories_test)

include_directories(sub)
include_directories(sub2)
include_directories(BEFORE sub3)

get_property(dirs DIRECTORY ${CMAKE_SOURCE_DIR} PROPERTY INCLUDE_DIRECTORIES)
message(">>> include_dirs=${dirs}")

set(CMAKE_INCLUDE_DIRECTORIES_BEFORE ON)
include_directories(sub4)
include_directories(AFTER sub5)
get_property(dirs DIRECTORY ${CMAKE_SOURCE_DIR} PROPERTY INCLUDE_DIRECTORIES)
message(">>> SET DEFAULT TO BEFORE, include_dirs=${dirs}")

add_executable(test main.cpp)


